import { addBaseBlock } from "../Blocks/Basic/addBaseBlock";
import { addTimeType } from "../Blocks/Basic/addTimer";

export const BasicBlockManager = (editor) => {
  // ------------------------------------------------------------------------------------------------------------
  /*
    Baseblock组件
  */
  const config = {
    // 需要添加的blcoks
    blocks: [
      "column1",
      "column2",
      "column3",
      "column3-7",
      "text",
      "link",
      "image",
    ],
    // 将flexbox用于网格
    flexGrid: true,
    // Class类的前缀
    stylePrefix: "gjs-",
    // 对blocks使用基本CSS
    addBasicStyle: true,
    category: "Basic",
    // 以下为标签名
    labelColumn1: "1 Column",
    labelColumn2: "2 Columns",
    labelColumn3: "3 Columns",
    labelColumn37: "2 Columns 3/7",
    labelText: "Text",
    labelLink: "Link",
    labelImage: "Image",
    // labelVideo: "Video",
    // labelMap: "Map",
    // 初始行高
    rowHeight: 75,
    // ...opts,
  };
  addBaseBlock(editor, config);


  // ------------------------------------------------------------------------------------------------------------
  /*
      添加计时器
  */
  addTimeType(editor);
}